get_or_null

pure function get_or_null(index: integer): json?

Get the element at the specified index of this JSON array, or null if this JSON value is not an array, or if the specified index is out of bounds.

Since

0.14.16

Parameters

index

the array index


pure function get_or_null(key: text): json?

Get the member with the specified key in this JSON object, or null if this JSON value is not an object, or if the specified key is not found in this object.

Since

0.14.16

Parameters

key

the object key